package com.example.exceptions.enumetation;

import lombok.Getter;

/**
 * @author: sjz
 * @since: 2024/6/30 19:50
 */
@Getter
public enum ResponseEnum {

    SUCCESS(200, "成功"),
    ERROR(400, "失败"),
    SERVER_BUSY(500, "服务器繁忙"),
    USERNAME_PASSWORD_ERROR(1001, "用户名或密码错误");


    private Integer code;
    private String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
